<?php 
	
	class movie{
		private $name;
		private $genre;
		private $continuence;
		private $trailer;
		private $poster;
		private $description;
		
		
		function __construct($name,$genre,$continuence,$trailer,$poster,$description){
			
			$this->setName($name);
			$this->setGenre($genre);
			$this->setContinuence($continuence);
			$this->setTrailer($trailer);
			$this->setPoster($poster);
			$this->setDescription($description);
			
// 			$quer="insert into movies(name,genre,continuence,trailer,poster,description) values(\"$this->name\",\"$this->genre\",\"$this->continuence\",\"$this->trailer\",\"$this->poster\",\"$this->description\")";
// 			$dbrec=db_query($quer)
// 			or pretty_die("problem reading table".mysql_error());
		//	echo "You have successfully added $this->name !!!";
		}
		
		function __destruct(){
				
		}
		
		public function getName(){
			return $this->name;
		}
		public function setName($name){
			if(is_string($name))
				$this->name=$name;
		}
		
		public function getGenre(){
			return $this->genre;
		}
		public function setGenre($genre){
			if(is_string($genre))
				$this->genre=$genre;
		}
		
		public function getContinuence(){
			return $this->continuence;
		}
		public function setContinuence($continuence){
			if(is_int($continuence))
				$this->continuence=$continuence;
		}
		
		public function getTrailer(){
			return $this->trailer;
		}
		public function setTrailer($trailer){
			if(is_string($trailer))
				$this->trailer=$trailer;
		}
		

		public function getPoster(){
			return $this->poster;
		}
		public function setPoster($poster){
			if(is_string($poster))
				$this->poster=$poster;
		}
		public function getDescription(){
			return $this->description;
		}
		public function setDescription($description){
			if(is_string($description))
				$this->description=$description;
		}
		
		
	}

?>